﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Test.Controllers.Base;
using Test.Repository.Interfaces;
using MvcMiniProfiler;

namespace Test.Controllers
{
    public class HomeController : BaseController
    {
        public HomeController(IElements rep) : base(rep) { }

        //
        // GET: /Home/
        public ActionResult Index()
        {
            var profiler = MiniProfiler.Current;

            using (profiler.Step("Home Controller Index"))
            {
                return View(rep.GetAll());
            }
        }

    }
}
